package ws.jdbc.concurrent.driver.sqlserver;

import java.sql.SQLException;

/**
 * Interface to scroll the result set.
 * 
 * @author Wilson Santos, 36228 <wilson.santos@ua.pt>
 */
public interface ResultSetScroll {

  /**
   * Calculate the new currentRow value.
   */
  void calcCurrentRow() throws SQLException;

  /**
   * Reset the result set index value and calculate the new result set index value.
   */
  void resetCache() throws SQLException;

  /**
   * Fetch the next result set cache.
   *
   * @throws SQLException if server communication error occurs.
   */
  void fetch() throws SQLException;
}
